package com.zking.service.impl.lp;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zking.dao.domain.Post;
import com.zking.dao.mapper.lp.IndexMapper;
import com.zking.service.lp.IndexBasedao;

@Service
public class BasedaoIndex implements IndexBasedao{
	
	@Autowired
	IndexMapper idm;
	
	//主页面显示职位数据
	@Override
	public List<Map<String, Object>> sees(Integer start, Integer limit) {
		List<Map<String, Object>> i = idm.sees(start,limit);
		return i;
	}
	
	//查询数据总条数
	@Override
	public long total() {
		long i = idm.total();
		return i;
	}
	//查询职位类别数据总条数
	@Override
	public long total2(String job_type) {
		long i = idm.total2(job_type);
		return i;
	}
	//查询职位名称数据总条数
	@Override
	public long total3(String job_name) {
		long i = idm.total3(job_name);
		return i;
	}
	
	//根据职位类别查数据
	@Override
	public List<Map<String, Object>> post1(Integer start, Integer limit,String job_type) {
		List<Map<String, Object>> i = idm.post1(start, limit, job_type);
		return i;
	}

	//根据职位名称查数据
	@Override
	public List<Map<String, Object>> post2(Integer start, Integer limit,String job_name) {
		List<Map<String, Object>> i = idm.post2(start, limit, job_name);
		return i;
	}

	//搜索框搜索职位名称
	@Override
	public List<Map<String, Object>> inform2(Integer start, Integer limit,String job_name) {
		List<Map<String, Object>> j = idm.inform2(start,limit,job_name);
		return j;
	}

	
}
